SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 49225: "Table Service: Function failed... Memory allocation error" occurs when you use SQL code longer than 776 characters within a SAS® DS2 hash object

DetailsAboutRate It

SAS DS2 enables you to create hash objects using a SQL query. However, there is a 776-character limit on the size of the SQL string that you can use for this functionality. This limit is not specific to the number of variables in the SELECT statement.

To work around this problem, location this string:

h.dataset('{' || sql_string || '}');

Change it to the following:

sqlsub('create view sqlview as ' || sql_string); h.dataset('sqlview');

In this string, sql_string is the SQL statement that you want to use for your hash data set.

Note: sqlsub is an early version of the sqlexec function. The sqlsub function was renamed sqlexec beginning with SAS® Federation Server 3.1.1. However, sqlsub remains a valid alias for sqlexec in SAS DS2 packages that are executed in the SAS Federation Server.



Operating System and Release Information

Product FamilyProductSystemProduct ReleaseSAS Release
ReportedFixed*ReportedFixed*
SAS SystemBase SASMicrosoft® Windows® for x649.3_M19.49.3 TS1M29.4 TS1M0
Microsoft Windows 8 Enterprise 32-bit9.3_M19.49.3 TS1M29.4 TS1M0
Microsoft Windows 8 Enterprise x649.3_M19.49.3 TS1M29.4 TS1M0
Microsoft Windows 8 Pro 32-bit9.3_M19.49.3 TS1M29.4 TS1M0
Microsoft Windows 8 Pro x649.3_M19.49.3 TS1M29.4 TS1M0
Microsoft Windows 8.1 Enterprise 32-bit9.3_M19.49.3 TS1M29.4 TS1M0
Microsoft Windows 8.1 Enterprise x649.3_M19.49.3 TS1M29.4 TS1M0
Microsoft Windows 8.1 Pro9.3_M19.49.3 TS1M29.4 TS1M0
Microsoft Windows 8.1 Pro 32-bit9.3_M19.49.3 TS1M29.4 TS1M0
Microsoft Windows Server 2008 R29.3_M19.49.3 TS1M29.4 TS1M0
Microsoft Windows Server 2008 for x649.3_M19.49.3 TS1M29.4 TS1M0
Microsoft Windows Server 2012 Datacenter9.3_M19.49.3 TS1M29.4 TS1M0
Microsoft Windows Server 2012 R2 Datacenter9.3_M19.49.3 TS1M29.4 TS1M0
Microsoft Windows Server 2012 R2 Std9.3_M19.49.3 TS1M29.4 TS1M0
Microsoft Windows Server 2012 Std9.3_M19.49.3 TS1M29.4 TS1M0
Windows 7 Enterprise x649.3_M19.49.3 TS1M29.4 TS1M0
Windows 7 Professional x649.3_M19.49.3 TS1M29.4 TS1M0
64-bit Enabled AIX9.3_M19.49.3 TS1M29.4 TS1M0
64-bit Enabled HP-UX9.3_M19.49.3 TS1M29.4 TS1M0
64-bit Enabled Solaris9.3_M19.49.3 TS1M29.4 TS1M0
HP-UX IPF9.3_M19.49.3 TS1M29.4 TS1M0
Linux9.3_M19.49.3 TS1M29.4 TS1M0
Linux for x649.3_M19.49.3 TS1M29.4 TS1M0
Solaris for x649.3_M19.49.3 TS1M29.4 TS1M0
* For software releases that are not yet generally available, the Fixed Release is the software release in which the problem is planned to be fixed.